package org.ala.distributed_transaction_test.test_1.query;

import java.lang.Long;
import java.util.Collection;
import java.lang.String;
import java.lang.Integer;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;


/**
 *	Query (test_1)
 *  
 *	@author 骆毅 (ala)
 *	@date 2024-02-17 11:44:18
 */
public class Test1Query implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@ApiModelProperty("id 全等")
	protected Long id;

	@ApiModelProperty("id 大于")
	protected Long idGt;

	@ApiModelProperty("id 大于等于")
	protected Long idGte;

	@ApiModelProperty("id 小于")
	protected Long idLt;

	@ApiModelProperty("id 小于等于")
	protected Long idLte;

	@ApiModelProperty("id 包含")
	protected Collection<Long> idIn;

	@ApiModelProperty("name 全等")
	protected String name;

	@ApiModelProperty("name")
	protected String nameLike;

	@ApiModelProperty("name")
	protected String nameLLike;

	@ApiModelProperty("name")
	protected String nameRLike;

	@ApiModelProperty("name")
	protected Collection<String> nameIn;

	@ApiModelProperty("age 全等")
	protected Integer age;

	@ApiModelProperty("age 大于")
	protected Integer ageGt;

	@ApiModelProperty("age 大于等于")
	protected Integer ageGte;

	@ApiModelProperty("age 小于")
	protected Integer ageLt;

	@ApiModelProperty("age 小于等于")
	protected Integer ageLte;

	@ApiModelProperty("age 包含")
	protected Collection<Integer> ageIn;

	@ApiModelProperty("sex 全等")
	protected Integer sex;

	@ApiModelProperty("sex 大于")
	protected Integer sexGt;

	@ApiModelProperty("sex 大于等于")
	protected Integer sexGte;

	@ApiModelProperty("sex 小于")
	protected Integer sexLt;

	@ApiModelProperty("sex 小于等于")
	protected Integer sexLte;

	@ApiModelProperty("sex 包含")
	protected Collection<Integer> sexIn;



	public static Test1Query build() {return new Test1Query();}

	
	public Test1Query id(Long id) {this.id = id; return this;}
	public void setId(Long id) {this.id = id;}
	public Long getId() {return id;}
	
	public Test1Query idGt(Long idGt) {this.idGt = idGt; return this;}
	public void setIdGt(Long idGt) {this.idGt = idGt;}
	public Long getIdGt() {return idGt;}
	
	public Test1Query idGte(Long idGte) {this.idGte = idGte; return this;}
	public void setIdGte(Long idGte) {this.idGte = idGte;}
	public Long getIdGte() {return idGte;}
	
	public Test1Query idLt(Long idLt) {this.idLt = idLt; return this;}
	public void setIdLt(Long idLt) {this.idLt = idLt;}
	public Long getIdLt() {return idLt;}
	
	public Test1Query idLte(Long idLte) {this.idLte = idLte; return this;}
	public void setIdLte(Long idLte) {this.idLte = idLte;}
	public Long getIdLte() {return idLte;}
	
	public Test1Query idIn(Collection<Long> idIn) {this.idIn = idIn; return this;}
	public void setIdIn(Collection<Long> idIn) {this.idIn = idIn;}
	public Collection<Long> getIdIn() {return idIn;}
	
	public Test1Query name(String name) {this.name = name; return this;}
	public void setName(String name) {this.name = name;}
	public String getName() {return name;}
	
	public Test1Query nameLike(String nameLike) {this.nameLike = nameLike; return this;}
	public void setNameLike(String nameLike) {this.nameLike = nameLike;}
	public String getNameLike() {return nameLike;}
	
	public Test1Query nameLLike(String nameLLike) {this.nameLLike = nameLLike; return this;}
	public void setNameLLike(String nameLLike) {this.nameLLike = nameLLike;}
	public String getNameLLike() {return nameLLike;}
	
	public Test1Query nameRLike(String nameRLike) {this.nameRLike = nameRLike; return this;}
	public void setNameRLike(String nameRLike) {this.nameRLike = nameRLike;}
	public String getNameRLike() {return nameRLike;}
	
	public Test1Query nameIn(Collection<String> nameIn) {this.nameIn = nameIn; return this;}
	public void setNameIn(Collection<String> nameIn) {this.nameIn = nameIn;}
	public Collection<String> getNameIn() {return nameIn;}
	
	public Test1Query age(Integer age) {this.age = age; return this;}
	public void setAge(Integer age) {this.age = age;}
	public Integer getAge() {return age;}
	
	public Test1Query ageGt(Integer ageGt) {this.ageGt = ageGt; return this;}
	public void setAgeGt(Integer ageGt) {this.ageGt = ageGt;}
	public Integer getAgeGt() {return ageGt;}
	
	public Test1Query ageGte(Integer ageGte) {this.ageGte = ageGte; return this;}
	public void setAgeGte(Integer ageGte) {this.ageGte = ageGte;}
	public Integer getAgeGte() {return ageGte;}
	
	public Test1Query ageLt(Integer ageLt) {this.ageLt = ageLt; return this;}
	public void setAgeLt(Integer ageLt) {this.ageLt = ageLt;}
	public Integer getAgeLt() {return ageLt;}
	
	public Test1Query ageLte(Integer ageLte) {this.ageLte = ageLte; return this;}
	public void setAgeLte(Integer ageLte) {this.ageLte = ageLte;}
	public Integer getAgeLte() {return ageLte;}
	
	public Test1Query ageIn(Collection<Integer> ageIn) {this.ageIn = ageIn; return this;}
	public void setAgeIn(Collection<Integer> ageIn) {this.ageIn = ageIn;}
	public Collection<Integer> getAgeIn() {return ageIn;}
	
	public Test1Query sex(Integer sex) {this.sex = sex; return this;}
	public void setSex(Integer sex) {this.sex = sex;}
	public Integer getSex() {return sex;}
	
	public Test1Query sexGt(Integer sexGt) {this.sexGt = sexGt; return this;}
	public void setSexGt(Integer sexGt) {this.sexGt = sexGt;}
	public Integer getSexGt() {return sexGt;}
	
	public Test1Query sexGte(Integer sexGte) {this.sexGte = sexGte; return this;}
	public void setSexGte(Integer sexGte) {this.sexGte = sexGte;}
	public Integer getSexGte() {return sexGte;}
	
	public Test1Query sexLt(Integer sexLt) {this.sexLt = sexLt; return this;}
	public void setSexLt(Integer sexLt) {this.sexLt = sexLt;}
	public Integer getSexLt() {return sexLt;}
	
	public Test1Query sexLte(Integer sexLte) {this.sexLte = sexLte; return this;}
	public void setSexLte(Integer sexLte) {this.sexLte = sexLte;}
	public Integer getSexLte() {return sexLte;}
	
	public Test1Query sexIn(Collection<Integer> sexIn) {this.sexIn = sexIn; return this;}
	public void setSexIn(Collection<Integer> sexIn) {this.sexIn = sexIn;}
	public Collection<Integer> getSexIn() {return sexIn;}
	


	/**
	 *	simple vo
	 */
	public boolean getIsSimple() {return false;}
	
	
	/**
	 *	is all prop be null.
	 */
	public boolean isEmpty() {
		if (id != null) {return false;}
		if (idGt != null) {return false;}
		if (idGte != null) {return false;}
		if (idLt != null) {return false;}
		if (idLte != null) {return false;}
		if (idIn != null) {return false;}
		if (name != null) {return false;}
		if (nameLike != null) {return false;}
		if (nameLLike != null) {return false;}
		if (nameRLike != null) {return false;}
		if (nameIn != null) {return false;}
		if (age != null) {return false;}
		if (ageGt != null) {return false;}
		if (ageGte != null) {return false;}
		if (ageLt != null) {return false;}
		if (ageLte != null) {return false;}
		if (ageIn != null) {return false;}
		if (sex != null) {return false;}
		if (sexGt != null) {return false;}
		if (sexGte != null) {return false;}
		if (sexLt != null) {return false;}
		if (sexLte != null) {return false;}
		if (sexIn != null) {return false;}

		return true;
	}
}
